package com.example.springbootvue.entity;

import java.math.BigDecimal;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author yz
 * @since 2023-03-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "员工的实体类")
public class Emp implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("EMPNO")
    @ApiModelProperty(value = "编号")
    private Integer empno;

    @TableField("ENAME")
    @ApiModelProperty(value = "姓名")
    private String ename;

    @TableField("JOB")
    @ApiModelProperty(value = "工作")
    private String job;

    @TableField("MGR")
    @ApiModelProperty(value = "上级经理编号")
    private Integer mgr;

    @TableField("HIREDATE")
    @ApiModelProperty(value = "时间")
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDate hiredate;

    @TableField("SAL")
    @ApiModelProperty(value = "工资")
    private BigDecimal sal;

    @TableField("COMM")
    @ApiModelProperty(value = "提成")
    private BigDecimal comm;

    @TableField("DEPTNO")
    @ApiModelProperty(value = "部门编号")
    private Integer deptno;
    //多表查询
    @TableField(exist = false)
    private Dept dept;


}
